<template>
	<view class="task_container">
		<my-task v-for="item in myTaskList" :key='item.id' :status='item.status' :endTime="item.endTime" :taskName="item.taskName" :incentiveAmount="item.incentiveAmount"></my-task>
	</view>
</template>
<script>
	import {
		myTask
	} from '@/config/api.js';
	export default {
		data() {
			return {
				customerId:'',
				myTaskList:[]

			};
		},
		created(){
			// 客户编号
			this.customerId = uni.getStorageSync('customerId')
			myTask({customerId: this.customerId}).then(res => {
				console.log(res)
				this.myTaskList = res.data
			})
		}
	}
</script>
<style lang="scss">
	.task_container {
		/* 确保没有高度的时候也会100% */
		min-height: 100vh;
		background-color: #F1F1F1;
	}
</style>
